<?php
if ($article) {
    $this->pageTitle = $article->metaTitle;
    $this->breadcrumbs = array($article->metaTitle);
    $this->metaTags = array(
        'description' => $article->metaDescription,
        'keywords' => $article->metaKeywords,
    );
} else {
    $this->pageTitle = Lang::t('promotion.page.title');
    $this->breadcrumbs = array(Lang::t('promotion.page.title'));
    $this->metaTags = array(
        'description' => '',
        'keywords' => '',
    );
}
?>

<div class="news-listing-page">
<h1><?php echo $this->pageTitle; ?></h1>


<?php if($article) echo $article->content; ?>

<?php
$dataProvider->pagination->pageSize = Yii::app()->request->getParam('pageSize_', 10);
$this->widget('ext.extended.ListView', array(
    'dataProvider'=>$dataProvider,
    'itemsCssClass'=>'news-listing-item',
    'itemView'=>'_view',
    'dropDowns'=>array(
        'pageSize' => array(
            'label' => Lang::t('page.lbl.results.per.page'),
            'dropDownVar' => 'pageSize_',
            'cssClass'=>'page-size',
            'default' => Yii::app()->params['defaultPageSize'],
            'items' => array(
                12 => 12,
                20 => 20,
                50 => 50,
            ),
        ),
    ),
));
?>
</div><!--end news-listing-->